from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'bibliodata.views.home', name='home'),
    # url(r'^bibliodata/', include('bibliodata.foo.urls')),
    url(r'^$', 'publications.views.mainIndex'),
    #url(r'^publications/', include('publications.urls')),
    url(r'publication/(?P<publication_id>\d+)/$', 'publications.views.publicationDetails', name='publicationDetails'),
    
    #For scopus crawler
    url(r'scopus/(?P<scopus_id>\d+)/$', 'publications.views.scopusPublications', name='scopusPublications'),
    
    url(r'^authors/', include('publications.urls')),
    
    
    
    #url(r'^authors/', include('polls.urls')),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
